class defend {
    constructor(flag) {
        this.flag = flag
    }
    getLogin () {

        localStorage.setItem('myToken', this.flag)
        return this.flag

    }

    getLogout () {

        localStorage.removeItem('myToken', this.flag)
        return this.flag

    }

    isLogin () {
        return !!this.getLogin()

    }

}

export default new defend(true)